package com.ruoyi.wq.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 拼团对象 wq_tuan
 * 
 * @author ruoyi
 * @date 2023-08-28
 */
public class WqTuan extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;
    
    private String tuanTag;

    /** 趣豆 */
    @Excel(name = "趣豆")
    private Long coin;

    /** 直接可得 */
    @Excel(name = "直接可得")
    private Integer buyCoin;

    /** 拼团成功可得 */
    @Excel(name = "拼团成功可得")
    private Integer tuanCoin;

    /** 拼团类型（0趣豆 1会员） */
    @Excel(name = "拼团类型", readConverterExp = "0=趣豆,1=会员")
    private String tuanType;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payPrice;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long maxNum;

    /** 已团数量 */
    @Excel(name = "已团数量")
    private Integer tuanNum;

    /** 几人成团 */
    @Excel(name = "几人成团")
    private Long userNum;

    /** 团购时间 */
    @Excel(name = "团购时间")
    private Integer tuanHour;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public String getTuanTag() {
		return tuanTag;
	}

	public void setTuanTag(String tuanTag) {
		this.tuanTag = tuanTag;
	}

	public void setCoin(Long coin) 
    {
        this.coin = coin;
    }

    public Long getCoin() 
    {
        return coin;
    }
    public void setBuyCoin(Integer buyCoin) 
    {
        this.buyCoin = buyCoin;
    }

    public Integer getBuyCoin() 
    {
        return buyCoin;
    }
    public void setTuanCoin(Integer tuanCoin) 
    {
        this.tuanCoin = tuanCoin;
    }

    public Integer getTuanCoin() 
    {
        return tuanCoin;
    }
    public void setTuanType(String tuanType) 
    {
        this.tuanType = tuanType;
    }

    public String getTuanType() 
    {
        return tuanType;
    }
    public void setPayPrice(BigDecimal payPrice) 
    {
        this.payPrice = payPrice;
    }

    public BigDecimal getPayPrice() 
    {
        return payPrice;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setMaxNum(Long maxNum) 
    {
        this.maxNum = maxNum;
    }

    public Long getMaxNum() 
    {
        return maxNum;
    }
    public void setTuanNum(Integer tuanNum) 
    {
        this.tuanNum = tuanNum;
    }

    public Integer getTuanNum() 
    {
        return tuanNum;
    }
    public void setUserNum(Long userNum) 
    {
        this.userNum = userNum;
    }

    public Long getUserNum() 
    {
        return userNum;
    }
    public void setTuanHour(Integer tuanHour) 
    {
        this.tuanHour = tuanHour;
    }

    public Integer getTuanHour() 
    {
        return tuanHour;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("coin", getCoin())
            .append("buyCoin", getBuyCoin())
            .append("tuanCoin", getTuanCoin())
            .append("tuanType", getTuanType())
            .append("payPrice", getPayPrice())
            .append("price", getPrice())
            .append("maxNum", getMaxNum())
            .append("tuanNum", getTuanNum())
            .append("userNum", getUserNum())
            .append("tuanHour", getTuanHour())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
